package com.whc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author 韦红材
 * @ClassName WebsocketConfig
 * @data 2024/10/23 19:54
 * @Version V1.0
 **/
//组成websocket对象
@Configuration
public class WebsocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
